<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head><script type="text/javascript" src="/utils/scripts/flat-ui.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><link rel="shortcut icon" href="/utils/image/favicon.ico" type="image/x-icon" />
<meta charset="UTF-8">
<title>学生信息管理系统</title>

<!-- 标题图标、CSS、js、jQ
<link href="/online/image/favicon.ico" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="/online/css/main.css">
<script src="/online/js/fun.js" type="text/javascript"></script>-->
<script type="text/javascript" src="/utils/js/jquery-3.3.1.min.js"></script>
<!-- Loading Bootstrap -->
<link href="/utils/css/vendor/bootstrap.min.css" rel="stylesheet">
<!-- Loading Flat UI Pro -->
<link href="/utils/css/flat-ui.css" rel="stylesheet">
<!-- Loading Flat UI JS -->
<script type="text/javascript" src="/utils/scripts/flat-ui.min.js"></script>

<script type='text/javascript' src='/utils/scripts/particles.js'></script><link href="/utils/css/animate.css" rel="stylesheet"></head>

<body><div id="particles-js"><canvas class="particles-js-canvas-el" width="1322" height="774" style="width: 100%; height: 100%;"></canvas></div>
<jsp:include page="studentLeft.jsp" />
<div class="container">
		<div class="row">
			<div class="col-md-12">
			<h5>查看选课结果</h5>
			<p class="alert alert-info">提示：没有教师安排的课程无法查询</p>

			<div class="row">
			<div class="col-md-12" >
						<div class="margin:0 15px" style="overflow-x: scroll;">
			<table  style="overflow:scroll;" class="table table-striped table-hover animated fadeIn">
				<tr>
					<th>课程名</th>
					<th>班级名称</th>
					<th>上课时间</th>
					<th>上课周</th>
					<th>上课教室</th>
					<th>学分</th>
					<th>学时</th>
					<th>代课老师</th>



				</tr>
				<c:forEach items="${requestScope.pageUtilsPs.records}" var="CourseplanDto"
						   varStatus="loop">
					<tr>
						<td>${CourseplanDto.cname }</td>
						<td>${CourseplanDto.courseclass }</td>
						<td>${CourseplanDto.coursetime}</td>
						<td>${CourseplanDto.courseweek}</td>
						<td>${CourseplanDto.classroom}</td>
						<td>${CourseplanDto.credits}</td>
						<td>${CourseplanDto.period}</td>
						<td>${CourseplanDto.tname}</td>
					</tr>
				</c:forEach>

			</table></div></div></div>
			</div>
		</div>


				<!-- 显示分页信息 -->
	<div class="row">
		<!--分页文字信息  -->
		<div class="col-md-6">当前 ${requestScope.pageUtilsPs.pageIndex}页,总${requestScope.pageUtilsPs.pageCount}页,总 ${requestScope.pageUtilsPs.countAll } 条记录</div>

		<!-- 分页条信息 -->
		<div class="col-md-6">
			<nav aria-label="Page navigation">
				<ul class="pagination bg-primary">

					<li><a href="/studentServlet.do?flag=selectedCourse&pageIndex=1">首页</a></li>

					<c:if test="${requestScope.pageUtilsPs.pageIndex>1}">
						<li><a href="/studentServlet.do?flag=selectedCourse&pageIndex=${requestScope.pageUtilsPs.pageIndex-1}"
							   aria-label="Previous"> <span aria-hidden="true">上一页</span>
						</a>
						</li>
					</c:if>

					<c:forEach items="${requestScope.pageUtilsPs.num}" var="page_Num">
						<c:if test="${requestScope.pageUtilsPs.pageIndex==page_Num}">
							<li class="active"><a href="#">${page_Num}</a></li>
						</c:if>
						<c:if test="${requestScope.pageUtilsPs.pageIndex!=page_Num}">
							<li><a href="/studentServlet.do?flag=selectedCourse&pageIndex=${page_Num}&type=${requestScope.type}">${page_Num}</a></li>
						</c:if>
					</c:forEach>

					<c:if test="${requestScope.pageUtilsPs.pageIndex<requestScope.pageUtilsPs.pageCount}">
						<li><a href="/studentServlet.do?flag=selectedCourse&pageIndex=${requestScope.pageUtilsPs.pageIndex+1}"
							   aria-label="Next"> <span aria-hidden="true">下一页</span>
						</a>
						</li>
					</c:if>
					<li><a href="/studentServlet.do?flag=selectedCourse&pageIndex=${requestScope.pageUtilsPs.pageCount}">末页</a></li>
				</ul>
			</nav>
		</div>
	</div>

</div>

<script type="text/javascript" src="/utils/scripts/flat-ui.js"></script><script src="/utils/scripts/bganimation.js"></script></body>
</html>